# 函数定义
def add(a, b):
    return a + b


# 函数调用
Sum = add(5, 3)
print("Sum:", Sum)


# 带有默认参数的函数
def greet(name, message="Hello"):
    print(f"{message},{name}!")


greet("Alice")
greet("Bob", "Welcome")


# 带有可变参数的函数
def sum_all(*args):
    total = sum(args)
    print("Total:", total)


sum_all(1, 2, 3, 4, 5)
